import React, { Component } from 'react'
import {connect} from 'react-redux'
export class Index extends Component {
    constructor(props){
        super(props)
        this.props.FooterShowFalse()
    }
    render() {
        return (
            <div className="logreg">
                <h1>网易云音乐</h1>
                <button  onClick={_ => this.props.history.push('/login')}>登录</button>
                <button  onClick={_ => this.props.history.push('/registry')}>注册</button>
            </div>
        )
    }
}

const mapStateToProps = (state)=>{
    return {
    }
}
const mapDispatchToProps = (dispatch)=>{
    return {
        FooterShowFalse : ()=>{ dispatch({type:'FSF'}) }
    }
}
export default connect(mapStateToProps,mapDispatchToProps)(Index)
